<?php defined("MAIN_DIR") or die("No direct access");

$c = $route->getPath(2);
$a = $route->getPath(3);

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <link rel="icon" type="image/png" href="/favicon.png" />
	<link rel="stylesheet" href="/files/css/admin.css">
    <script type="text/javascript" src="/files/js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="/files/js/admin.js"></script>
    <title><?php
		echo isset($page_title) ? $page_title : "Маргарита и Антон - Админ панель";
	?></title>
</head>
	<body>
		<div id='main'>
		<div id="left-menu-back"></div>
		<div id="top-menu">
			<ul id="top-menu-list">
				<li><a href='/'>На сайт</a></li>
				<?php if ($c != "auth") echo "<li><a href='/admin/logout/'>Выйти</a></li>"; ?>
			</ul>
		</div>
        <div id="left-menu">
            <div id="left-menu-shadow"></div>
            <ul id="left-menu-list"><?php

                if ($c == "auth") {
                    ?><li class="left-menu-list-item separator-list-item">
                        <div class="separator"></div>
                    </li>
                    <li class="left-menu-list-item current">
                        <div class='arrow'></div>
                        <a href="/admin/auth/" class="left-menu-link">Авторизация</a>
                    </li><?php
                } else {
                    ?>
					<li class="left-menu-list-item <?php echo ($c=="photos")?"current":""; ?>">
						<div class='arrow'></div>
						<a href="/admin/photos/list/" class="left-menu-link">Фотки</a>
					</li>
	                <li class="left-menu-list-item <?php echo ($c=="guests")?"current":""; ?>">
						<div class='arrow'></div>
						<a href="/admin/guests/list/" class="left-menu-link">Гости</a>
					</li>
					<li class="left-menu-list-item separator-list-item">
						<div class="separator"></div>
					</li>
					<li class="left-menu-list-item <?php echo ($c=="users")?"current":""; ?>">
						<div class='arrow'></div>
						<a href="/admin/users/" class="left-menu-link">Пользователи</a>
					</li>
					<?php
                }
            ?></ul>
		</div>
		<div id="content">